package org.lanqiao.entity;

import java.util.ArrayList;
import java.util.List;

public class ServiceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ServiceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSidIsNull() {
            addCriterion("sid is null");
            return (Criteria) this;
        }

        public Criteria andSidIsNotNull() {
            addCriterion("sid is not null");
            return (Criteria) this;
        }

        public Criteria andSidEqualTo(Integer value) {
            addCriterion("sid =", value, "sid");
            return (Criteria) this;
        }

        public Criteria andSidNotEqualTo(Integer value) {
            addCriterion("sid <>", value, "sid");
            return (Criteria) this;
        }

        public Criteria andSidGreaterThan(Integer value) {
            addCriterion("sid >", value, "sid");
            return (Criteria) this;
        }

        public Criteria andSidGreaterThanOrEqualTo(Integer value) {
            addCriterion("sid >=", value, "sid");
            return (Criteria) this;
        }

        public Criteria andSidLessThan(Integer value) {
            addCriterion("sid <", value, "sid");
            return (Criteria) this;
        }

        public Criteria andSidLessThanOrEqualTo(Integer value) {
            addCriterion("sid <=", value, "sid");
            return (Criteria) this;
        }

        public Criteria andSidIn(List<Integer> values) {
            addCriterion("sid in", values, "sid");
            return (Criteria) this;
        }

        public Criteria andSidNotIn(List<Integer> values) {
            addCriterion("sid not in", values, "sid");
            return (Criteria) this;
        }

        public Criteria andSidBetween(Integer value1, Integer value2) {
            addCriterion("sid between", value1, value2, "sid");
            return (Criteria) this;
        }

        public Criteria andSidNotBetween(Integer value1, Integer value2) {
            addCriterion("sid not between", value1, value2, "sid");
            return (Criteria) this;
        }

        public Criteria andSaccountidIsNull() {
            addCriterion("saccountid is null");
            return (Criteria) this;
        }

        public Criteria andSaccountidIsNotNull() {
            addCriterion("saccountid is not null");
            return (Criteria) this;
        }

        public Criteria andSaccountidEqualTo(Integer value) {
            addCriterion("saccountid =", value, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidNotEqualTo(Integer value) {
            addCriterion("saccountid <>", value, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidGreaterThan(Integer value) {
            addCriterion("saccountid >", value, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidGreaterThanOrEqualTo(Integer value) {
            addCriterion("saccountid >=", value, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidLessThan(Integer value) {
            addCriterion("saccountid <", value, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidLessThanOrEqualTo(Integer value) {
            addCriterion("saccountid <=", value, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidIn(List<Integer> values) {
            addCriterion("saccountid in", values, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidNotIn(List<Integer> values) {
            addCriterion("saccountid not in", values, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidBetween(Integer value1, Integer value2) {
            addCriterion("saccountid between", value1, value2, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSaccountidNotBetween(Integer value1, Integer value2) {
            addCriterion("saccountid not between", value1, value2, "saccountid");
            return (Criteria) this;
        }

        public Criteria andSidcardIsNull() {
            addCriterion("sidcard is null");
            return (Criteria) this;
        }

        public Criteria andSidcardIsNotNull() {
            addCriterion("sidcard is not null");
            return (Criteria) this;
        }

        public Criteria andSidcardEqualTo(String value) {
            addCriterion("sidcard =", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardNotEqualTo(String value) {
            addCriterion("sidcard <>", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardGreaterThan(String value) {
            addCriterion("sidcard >", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardGreaterThanOrEqualTo(String value) {
            addCriterion("sidcard >=", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardLessThan(String value) {
            addCriterion("sidcard <", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardLessThanOrEqualTo(String value) {
            addCriterion("sidcard <=", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardLike(String value) {
            addCriterion("sidcard like", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardNotLike(String value) {
            addCriterion("sidcard not like", value, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardIn(List<String> values) {
            addCriterion("sidcard in", values, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardNotIn(List<String> values) {
            addCriterion("sidcard not in", values, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardBetween(String value1, String value2) {
            addCriterion("sidcard between", value1, value2, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSidcardNotBetween(String value1, String value2) {
            addCriterion("sidcard not between", value1, value2, "sidcard");
            return (Criteria) this;
        }

        public Criteria andSnameIsNull() {
            addCriterion("sname is null");
            return (Criteria) this;
        }

        public Criteria andSnameIsNotNull() {
            addCriterion("sname is not null");
            return (Criteria) this;
        }

        public Criteria andSnameEqualTo(String value) {
            addCriterion("sname =", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameNotEqualTo(String value) {
            addCriterion("sname <>", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameGreaterThan(String value) {
            addCriterion("sname >", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameGreaterThanOrEqualTo(String value) {
            addCriterion("sname >=", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameLessThan(String value) {
            addCriterion("sname <", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameLessThanOrEqualTo(String value) {
            addCriterion("sname <=", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameLike(String value) {
            addCriterion("sname like", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameNotLike(String value) {
            addCriterion("sname not like", value, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameIn(List<String> values) {
            addCriterion("sname in", values, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameNotIn(List<String> values) {
            addCriterion("sname not in", values, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameBetween(String value1, String value2) {
            addCriterion("sname between", value1, value2, "sname");
            return (Criteria) this;
        }

        public Criteria andSnameNotBetween(String value1, String value2) {
            addCriterion("sname not between", value1, value2, "sname");
            return (Criteria) this;
        }

        public Criteria andSosnameIsNull() {
            addCriterion("sosname is null");
            return (Criteria) this;
        }

        public Criteria andSosnameIsNotNull() {
            addCriterion("sosname is not null");
            return (Criteria) this;
        }

        public Criteria andSosnameEqualTo(String value) {
            addCriterion("sosname =", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameNotEqualTo(String value) {
            addCriterion("sosname <>", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameGreaterThan(String value) {
            addCriterion("sosname >", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameGreaterThanOrEqualTo(String value) {
            addCriterion("sosname >=", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameLessThan(String value) {
            addCriterion("sosname <", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameLessThanOrEqualTo(String value) {
            addCriterion("sosname <=", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameLike(String value) {
            addCriterion("sosname like", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameNotLike(String value) {
            addCriterion("sosname not like", value, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameIn(List<String> values) {
            addCriterion("sosname in", values, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameNotIn(List<String> values) {
            addCriterion("sosname not in", values, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameBetween(String value1, String value2) {
            addCriterion("sosname between", value1, value2, "sosname");
            return (Criteria) this;
        }

        public Criteria andSosnameNotBetween(String value1, String value2) {
            addCriterion("sosname not between", value1, value2, "sosname");
            return (Criteria) this;
        }

        public Criteria andSstatusIsNull() {
            addCriterion("sstatus is null");
            return (Criteria) this;
        }

        public Criteria andSstatusIsNotNull() {
            addCriterion("sstatus is not null");
            return (Criteria) this;
        }

        public Criteria andSstatusEqualTo(String value) {
            addCriterion("sstatus =", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusNotEqualTo(String value) {
            addCriterion("sstatus <>", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusGreaterThan(String value) {
            addCriterion("sstatus >", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusGreaterThanOrEqualTo(String value) {
            addCriterion("sstatus >=", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusLessThan(String value) {
            addCriterion("sstatus <", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusLessThanOrEqualTo(String value) {
            addCriterion("sstatus <=", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusLike(String value) {
            addCriterion("sstatus like", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusNotLike(String value) {
            addCriterion("sstatus not like", value, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusIn(List<String> values) {
            addCriterion("sstatus in", values, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusNotIn(List<String> values) {
            addCriterion("sstatus not in", values, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusBetween(String value1, String value2) {
            addCriterion("sstatus between", value1, value2, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSstatusNotBetween(String value1, String value2) {
            addCriterion("sstatus not between", value1, value2, "sstatus");
            return (Criteria) this;
        }

        public Criteria andSipIsNull() {
            addCriterion("sip is null");
            return (Criteria) this;
        }

        public Criteria andSipIsNotNull() {
            addCriterion("sip is not null");
            return (Criteria) this;
        }

        public Criteria andSipEqualTo(String value) {
            addCriterion("sip =", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipNotEqualTo(String value) {
            addCriterion("sip <>", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipGreaterThan(String value) {
            addCriterion("sip >", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipGreaterThanOrEqualTo(String value) {
            addCriterion("sip >=", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipLessThan(String value) {
            addCriterion("sip <", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipLessThanOrEqualTo(String value) {
            addCriterion("sip <=", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipLike(String value) {
            addCriterion("sip like", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipNotLike(String value) {
            addCriterion("sip not like", value, "sip");
            return (Criteria) this;
        }

        public Criteria andSipIn(List<String> values) {
            addCriterion("sip in", values, "sip");
            return (Criteria) this;
        }

        public Criteria andSipNotIn(List<String> values) {
            addCriterion("sip not in", values, "sip");
            return (Criteria) this;
        }

        public Criteria andSipBetween(String value1, String value2) {
            addCriterion("sip between", value1, value2, "sip");
            return (Criteria) this;
        }

        public Criteria andSipNotBetween(String value1, String value2) {
            addCriterion("sip not between", value1, value2, "sip");
            return (Criteria) this;
        }

        public Criteria andScostnameIsNull() {
            addCriterion("scostname is null");
            return (Criteria) this;
        }

        public Criteria andScostnameIsNotNull() {
            addCriterion("scostname is not null");
            return (Criteria) this;
        }

        public Criteria andScostnameEqualTo(String value) {
            addCriterion("scostname =", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameNotEqualTo(String value) {
            addCriterion("scostname <>", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameGreaterThan(String value) {
            addCriterion("scostname >", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameGreaterThanOrEqualTo(String value) {
            addCriterion("scostname >=", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameLessThan(String value) {
            addCriterion("scostname <", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameLessThanOrEqualTo(String value) {
            addCriterion("scostname <=", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameLike(String value) {
            addCriterion("scostname like", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameNotLike(String value) {
            addCriterion("scostname not like", value, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameIn(List<String> values) {
            addCriterion("scostname in", values, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameNotIn(List<String> values) {
            addCriterion("scostname not in", values, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameBetween(String value1, String value2) {
            addCriterion("scostname between", value1, value2, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostnameNotBetween(String value1, String value2) {
            addCriterion("scostname not between", value1, value2, "scostname");
            return (Criteria) this;
        }

        public Criteria andScostidIsNull() {
            addCriterion("scostid is null");
            return (Criteria) this;
        }

        public Criteria andScostidIsNotNull() {
            addCriterion("scostid is not null");
            return (Criteria) this;
        }

        public Criteria andScostidEqualTo(Integer value) {
            addCriterion("scostid =", value, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidNotEqualTo(Integer value) {
            addCriterion("scostid <>", value, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidGreaterThan(Integer value) {
            addCriterion("scostid >", value, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidGreaterThanOrEqualTo(Integer value) {
            addCriterion("scostid >=", value, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidLessThan(Integer value) {
            addCriterion("scostid <", value, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidLessThanOrEqualTo(Integer value) {
            addCriterion("scostid <=", value, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidIn(List<Integer> values) {
            addCriterion("scostid in", values, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidNotIn(List<Integer> values) {
            addCriterion("scostid not in", values, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidBetween(Integer value1, Integer value2) {
            addCriterion("scostid between", value1, value2, "scostid");
            return (Criteria) this;
        }

        public Criteria andScostidNotBetween(Integer value1, Integer value2) {
            addCriterion("scostid not between", value1, value2, "scostid");
            return (Criteria) this;
        }

        public Criteria andSpswIsNull() {
            addCriterion("spsw is null");
            return (Criteria) this;
        }

        public Criteria andSpswIsNotNull() {
            addCriterion("spsw is not null");
            return (Criteria) this;
        }

        public Criteria andSpswEqualTo(String value) {
            addCriterion("spsw =", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswNotEqualTo(String value) {
            addCriterion("spsw <>", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswGreaterThan(String value) {
            addCriterion("spsw >", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswGreaterThanOrEqualTo(String value) {
            addCriterion("spsw >=", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswLessThan(String value) {
            addCriterion("spsw <", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswLessThanOrEqualTo(String value) {
            addCriterion("spsw <=", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswLike(String value) {
            addCriterion("spsw like", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswNotLike(String value) {
            addCriterion("spsw not like", value, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswIn(List<String> values) {
            addCriterion("spsw in", values, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswNotIn(List<String> values) {
            addCriterion("spsw not in", values, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswBetween(String value1, String value2) {
            addCriterion("spsw between", value1, value2, "spsw");
            return (Criteria) this;
        }

        public Criteria andSpswNotBetween(String value1, String value2) {
            addCriterion("spsw not between", value1, value2, "spsw");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}